3.7.22 \(\int (1+\sin (e+f x))^m (3+3 \sin (e+f x))^{-1-m} \, dx\) [622]

Optimal. Leaf size=28 \[ -\frac {3^{-1-m} \cos (e+f x)}{f (1+\sin (e+f x))} \]

[Out]

-3^(-1-m)*cos(f*x+e)/f/(1+sin(f*x+e))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {22, 2727} \begin {gather*} -\frac {3^{-m-1} \cos (e+f x)}{f (\sin (e+f x)+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 + Sin[e + f*x])^m*(3 + 3*Sin[e + f*x])^(-1 - m),x]

[Out]

-((3^(-1 - m)*Cos[e + f*x])/(f*(1 + Sin[e + f*x])))

Rule 22

Int[(u_.)*((a_) + (b_.)*(v_))^(m_)*((c_) + (d_.)*(v_))^(n_), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m + n
), x], x] /; FreeQ[{a, b, c, d, m, n}, x] && EqQ[b*c - a*d, 0] && GtQ[b/d, 0] &&  !(IntegerQ[m] || IntegerQ[n]
)

Rule 2727

Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> Simp[-Cos[c + d*x]/(d*(b + a*Sin[c + d*x])), x]
/; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int (1+\sin (e+f x))^m (3+3 \sin (e+f x))^{-1-m} \, dx &=3^{-m} \int \frac {1}{3+3 \sin (e+f x)} \, dx\\ &=-\frac {3^{-1-m} \cos (e+f x)}{f (1+\sin (e+f x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 45, normalized size = 1.61 \begin {gather*} \frac {2\ 3^{-1-m} \sin \left (\frac {1}{2} (e+f x)\right )}{f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1 + Sin[e + f*x])^m*(3 + 3*Sin[e + f*x])^(-1 - m),x]

[Out]

(2*3^(-1 - m)*Sin[(e + f*x)/2])/(f*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2]))

________________________________________________________________________________________

Maple [F]
time = 0.13, size = 0, normalized size = 0.00 \[\int \left (1+\sin \left (f x +e \right )\right )^{m} \left (3+3 \sin \left (f x +e \right )\right )^{-1-m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+sin(f*x+e))^m*(3+3*sin(f*x+e))^(-1-m),x)

[Out]

int((1+sin(f*x+e))^m*(3+3*sin(f*x+e))^(-1-m),x)

________________________________________________________________________________________

Maxima [A]
time = 0.51, size = 37, normalized size = 1.32 \begin {gather*} -\frac {2}{{\left (3^{m + 1} + \frac {3^{m + 1} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )} f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+sin(f*x+e))^m*(3+3*sin(f*x+e))^(-1-m),x, algorithm="maxima")

[Out]

-2/((3^(m + 1) + 3^(m + 1)*sin(f*x + e)/(cos(f*x + e) + 1))*f)

________________________________________________________________________________________

Fricas [A]
time = 0.33, size = 58, normalized size = 2.07 \begin {gather*} -\frac {3^{-m - 1} {\left (\cos \left (f x + e\right ) + 1\right )} - 3^{-m - 1} \sin \left (f x + e\right )}{f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+sin(f*x+e))^m*(3+3*sin(f*x+e))^(-1-m),x, algorithm="fricas")

[Out]

-(3^(-m - 1)*(cos(f*x + e) + 1) - 3^(-m - 1)*sin(f*x + e))/(f*cos(f*x + e) + f*sin(f*x + e) + f)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} 3^{- m - 1} \int \frac {1}{\sin {\left (e + f x \right )} + 1}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+sin(f*x+e))**m*(3+3*sin(f*x+e))**(-1-m),x)

[Out]

3**(-m - 1)*Integral(1/(sin(e + f*x) + 1), x)

________________________________________________________________________________________

Giac [A]
time = 0.64, size = 45, normalized size = 1.61 \begin {gather*} \frac {3^{-m - 1} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 3^{-m - 1}}{f \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+sin(f*x+e))^m*(3+3*sin(f*x+e))^(-1-m),x, algorithm="giac")

[Out]

(3^(-m - 1)*tan(1/2*f*x + 1/2*e) - 3^(-m - 1))/(f*tan(1/2*f*x + 1/2*e) + f)

________________________________________________________________________________________

Mupad [B]
time = 0.43, size = 41, normalized size = 1.46 \begin {gather*} \frac {\frac {1}{3^{m+1}}\,\left (-\cos \left (e+f\,x\right )+\sin \left (e+f\,x\right )\,1{}\mathrm {i}+1{}\mathrm {i}\right )}{f\,\left (\sin \left (e+f\,x\right )+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((sin(e + f*x) + 1)^m/(3*sin(e + f*x) + 3)^(m + 1),x)

[Out]

(1/3^(m + 1)*(sin(e + f*x)*1i - cos(e + f*x) + 1i))/(f*(sin(e + f*x) + 1))

________________________________________________________________________________________